Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 2 - Providers / Providers Reference
Functions / Controlling a Provider's Mode of Operation


OTSetSynchronous

Sets a provider's mode of execution to synchronous.

C INTERFACE
OSStatus OTSetSynchronous(ProviderRef ref);
C++ INTERFACE
OSStatus TProvider::SetSynchronous();
PARAMETERS
ref
The provider reference of the provider whose mode of execution you want to set.
DESCRIPTION
The OTSetSynchronous function causes all provider functions to run synchronously when using the provider that you specify.

Changing a provider's mode of execution does not affect its notifier function, if any is installed for this provider; the notifier function remains installed.

SEE ALSO
Modes of execution and notifier functions are described in "Specifying How Provider Functions Execute" on page 2-9.

To set a provider to asynchronous mode, call the OTSetAsynchronous function, described next. To find out a provider's mode of execution, call the OTIsSynchronous function (page 2-30).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996